home *** CD-ROM | disk | FTP | other *** search
/ PC-Blue - MS DOS Public Domain Library / PC-Blue MS-DOS Public Domain Library - NYACC.iso / vol319 / pcdraft.lis < prev    next >
Encoding:
File List  |  1987-06-12  |  25.2 KB  |  601 lines

  1.  
  2.                     A User's Manual For PCDRAFT 2.1
  3.                                     
  4.                          SET Laboratories, Inc.
  5.                              P.O. Box 03963
  6.                            Portland, OR 97203
  7.  
  8.  
  9.  
  10.        INTRODUCTION 
  11.  
  12.             Welcome to the P_C_D_R_A_F_T_ user community! P_C_D_R_A_F_T_ is a 
  13.        'post-processor' text formatting program for producing 
  14.        documents that runs under MS-DOS* P_C_D_R_A_F_T_ differs from 
  15.        other popular microcomputer word processing systems in 
  16.        that what the user types is not neccessarily what the 
  17.        finished product will look like. P_C_D_R_A_F_T_ makes use of 
  18.        "embedded formatting commands" which control spacing, 
  19.        paragraphs, centering, etc. Thus, the user creates a 
  20.        "source file", consisting of the text to be formatted, 
  21.        along with the embedded formatting commands using an 
  22.        editor such as EDLIN or even another word processor which 
  23.        creates ASCII text files. P_C_D_R_A_F_T_ will generate a 
  24.        formatted file (the "destination" file) from the source 
  25.        file. 
  26.  
  27.             The source file can have any extension, however the 
  28.        default is '.RNO'. The formatted file will have the same 
  29.        name as the source file, but with the extension '.LIS'. 
  30.        Make sure that the source file does n_o_t_ have the extension 
  31.        '.LIS'. When an embedded formatting command is 
  32.        encountered, the particular operation (eg, starting a 
  33.        paragraph, or centering a line of text) will be applied to 
  34.        the destination file. 
  35.  
  36.             The source file may be typed without regard to lines, 
  37.        page numbers, section numbers, centering, etc. Thus the 
  38.        user may change or add text to an existing document 
  39.        without worrying about how it will affect the page 
  40.        numbering, spacing, etc. P_C_D_R_A_F_T_ will automatically 
  41.        combine or split lines so that only a predetermined number 
  42.        of letters will be on a single line, and a predetermined 
  43.        number of lines on a single page. For example, the 
  44.        following text segment may be stored on six separate lines 
  45.        in the source file: 
  46.              
  47.             Now is
  48.             the time for all
  49.             people to
  50.             come to the
  51.             aid of their
  52.             country.
  53.             
  54.        After formatting P_C_D_R_A_F_T_ will cause the following to be 
  55.        printed: 
  56.  
  57.  
  58.  
  59.        ____________________
  60.        * MS-DOS is a trademark of Microsoft Corp.
  61.  
  62.        
  63.        
  64.  
  65.        PCDRAFT 2.1 Documentation                                       2
  66.        Copyright, 1987 by SET Laboratories, Inc.
  67.  
  68.  
  69.        Now is the time for all people to come to the aid of their 
  70.        country. 
  71.  
  72.        In addition, PCDRAFT will generate a table of contents on 
  73.        a page following the last formatted page of the output 
  74.        file listing all the headings (.SH, .NH and .TL) specified 
  75.        in the text and their page numbers. Another useful feature 
  76.        is a running count of words processed so far which appears 
  77.        in the upper right hand corner of the screen as the text 
  78.        is being formatted. 
  79.  
  80.  
  81.        HARDWARE AND SOFTWARE REQUIREMENTS 
  82.  
  83.             P_C_D_R_A_F_T_ requires only very modest hardware and 
  84.        software resources to be used. It requires a PC/XT/AT or 
  85.        compatible computer with MS-DOS 2.0 or above, and 128K of 
  86.        RAM. A single disk drive is sufficient as P_C_D_R_A_F_T_ takes up 
  87.        only 22K of disk space (60K including the documentation). 
  88.        Thus, you may put a copy on every disk which you intend to 
  89.        store text on. In addition to P_C_D_R_A_F_T_ you will need a 
  90.        "text editor" to prepare the source text. For example, 
  91.        EDLIN comes with MS-DOS. A number of other companies 
  92.        distribute "full screen" text editors for program 
  93.        construction. You can even use a word processor as long as 
  94.        it creates ASCII text files. If you do use a word 
  95.        processor, remember to use "hard returns". 
  96.  
  97.             P_C_D_R_A_F_T_ is truly a "plain vanilla" text formatter. It 
  98.        does n_o_t_ support italics, greek letters, superscripts, 
  99.        subscripts, math symbols, etc. What it d_o_e_s_ do is produce 
  100.        a neat formatted version of an unformatted source file for 
  101.        printing on a simple dot-matrix or daisy wheel printer. 
  102.        P_C_D_R_A_F_T_ is easy to use, and provides a great deal of 
  103.        power, yet requires the user to remember only about two 
  104.        dozen mnemonic command symbols (no ALT-? combinations to 
  105.        remember). Further, P_C_D_R_A_F_T_ produces an ASCII text file 
  106.        with minimal control characters, codes, etc., so it can be 
  107.        easily uploaded or downloaded to virtually any system and 
  108.        printed on most printers (as long as the printer supports 
  109.        the backspace character ^H and the form feed character 
  110.        ^L). 
  111.  
  112.             P_C_D_R_A_F_T_ can format a source file of about 3,000 words 
  113.        in less than three minutes. The size of the file that can 
  114.        be formatted by P_C_D_R_A_F_T_ is essentially unlimited. 
  115.        
  116.        
  117.  
  118.        PCDRAFT 2.1 Documentation                                       3
  119.        Copyright, 1987 by SET Laboratories, Inc.
  120.  
  121.  
  122.  
  123.  
  124.  
  125.        TECHNICAL MATTERS 
  126.  
  127.             The executable version of P_C_D_R_A_F_T_ is in the file 
  128.        PCDRAFT.COM. The unformatted version of this documentation 
  129.        is in the file PCDRAFT.RNO, and the formatted version 
  130.        (probably what you're reading right now) is in the file 
  131.        PCDRAFT.LIS. P_C_D_R_A_F_T_ can be executed using the following 
  132.        command: 
  133.              
  134.             PCDRAFT
  135.             
  136.        assuming that the P_C_D_R_A_F_T_ diskette is in the default disk 
  137.        drive (eg, "A:"). The user will then be prompted for the 
  138.        name of the source file they would like formatted. If the 
  139.        file does not have the .RNO extension, the user should 
  140.        specify the proper extension, otherwise .RNO will be 
  141.        assumed. P_C_D_R_A_F_T_ will produce a formatted file of the same 
  142.        name, but with the extension '.LIS'. This file will 
  143.        contain the formatted document and a table of contents. 
  144.        The formatted document may be printed using a line printer 
  145.        with the MS-DOS command PRINT. 
  146.  
  147.  
  148.        PCDRAFT COMMANDS 
  149.  
  150.             P_C_D_R_A_F_T_ commands are embedded in the text of the 
  151.        source file at the point where their actions are desired. 
  152.        For example, the P_C_D_R_A_F_T_ command to cause a new paragraph 
  153.        is '.PP'. Thus, if the user wants a new paragraph to begin 
  154.        before a particular group of text is to be printed, the 
  155.        '.PP' should precede this text, on a line by itself. 
  156.  
  157.             P_C_D_R_A_F_T_ commands always are on a line by themselves, 
  158.        start in column 1 and begin with a period ('.'). P_C_D_R_A_F_T_ 
  159.        commands may be written using either upper or lower case. 
  160.  
  161.             Some of the commands require a 'closer'. For example, 
  162.        the '.FS' command causes the text lines that follow it in 
  163.        the source file, up to the closer command '.FE', to be 
  164.        printed as a footnote on the current page of the formatted 
  165.        file. 
  166.  
  167.             The user should make sure that every P_C_D_R_A_F_T_ source 
  168.        file ends with the command ".EN" on the last physical line 
  169.        of the file. The following is a list of the commands 
  170.        currently supported by P_C_D_R_A_F_T_:_ 
  171.  
  172.  
  173.        
  174.        
  175.  
  176.        PCDRAFT 2.1 Documentation                                       4
  177.        Copyright, 1987 by SET Laboratories, Inc.
  178.  
  179.  
  180.        .BP  When this command is encountered by P_C_D_R_A_F_T_,_ it causes 
  181.             a page eject in the formatted file. This may not work 
  182.             with printers that do not support page ejects; 
  183.             however this is a problem with only a very few 
  184.             printers. 
  185.  
  186.        .CE x   Center the next x lines of text in the source file. 
  187.             If x is omitted, it is assumed to be 1. Each line to 
  188.             be centered should be placed on a line by itself. No 
  189.             'formatting' is performed on this text other than 
  190.             centering. If two or more centered lines are to be 
  191.             separated by blank lines, the text may contain these 
  192.             blank lines, but be sure to include the blank lines 
  193.             in the count of lines to be centered. This command is 
  194.             similar to the .TL command, except the centered text 
  195.             is not included in the generated table of contents. 
  196.  
  197.        .CS x   This command causes the spacing of the formatted 
  198.             file to be changed to 'x'. For example, if 'x' were 
  199.             2, the the output text would be double spaced. The 
  200.             default spacing is 1. Note that this does not cause 
  201.             any particular action to take place, but rather 
  202.             affects future actions. 
  203.  
  204.        .DP This command will cause an additional blank (except 
  205.             for heading and page number) page to be generated 
  206.             when the next page break in the formatted file 
  207.             occurs. This is useful if some blank pages are needed 
  208.             for including hand drawn figures, program listings, 
  209.             etc. A blank page will be generated for each pending 
  210.             '.DP' Note that no action is performed until the next 
  211.             page break which would normally occur is encountered. 
  212.  
  213.        .DS The following lines of the source file, up to a '.DE', 
  214.             will be treated as a 'display'. In other words, they 
  215.             will be printed exactly as they are in the source 
  216.             file, but indented by 5 spaces. If the text is to be 
  217.             left justified instead of indented, the command 
  218.             should be modified as '.DS L'. No formatting will 
  219.             take place on the text between the '.DS' and the 
  220.             '.DE'. This is a convienient way to display tables, 
  221.             equations, etc. The "running word count" that is 
  222.             displayed at the upper right hand corner of the 
  223.             screen while formatting is taking place counts each 
  224.             line within the '.DS/.DE' pair as a single word. 
  225.  
  226.        .EN  This command should be placed at the physical end of 
  227.             your P_C_D_R_A_F_T_ source file. Failure to do so, may 
  228.             result in strange characters appearing in the last 
  229.             line of the formatted output. 
  230.  
  231.  
  232.        
  233.        
  234.  
  235.        PCDRAFT 2.1 Documentation                                       5
  236.        Copyright, 1987 by SET Laboratories, Inc.
  237.  
  238.  
  239.        .FR  The following T_W_O_ lines of the source file will be 
  240.             treated as a 'page footer' for the rest of the 
  241.             document (unless another '.FR' is encountered). This 
  242.             means that these two lines will be printed at the 
  243.             bottom of every page in the formatted file, from this 
  244.             point on. TWO header lines MUST follow the '.FR' in 
  245.             the source file - they may be blank if the user 
  246.             chooses, but they must both be included. If no 
  247.             footers are needed, the '.FR' command may be omitted. 
  248.  
  249.        .FS  The following lines in the source file, up to a '.FE' 
  250.             will be treated as a footnote, and will be printed at 
  251.             the bottom of the current page. Currently, a limit of 
  252.             20 lines of footnotes, per page, exists. 
  253.  
  254.        .HR  The following TWO lines of the source file will be 
  255.             treated as a 'page header' for the rest of the 
  256.             document (unless another '.HR' is encountered). This 
  257.             means that these two lines will be printed at the top 
  258.             of every page in the formatted file, from this point 
  259.             on. T_W_O_ header lines MUST follow the '.HR' in the 
  260.             source file - they may be blank if the user chooses, 
  261.             but they must both be included. If no headers are 
  262.             needed, the '.HR' command may be omitted - the 
  263.             default header is simply two blank lines. The page 
  264.             header for this document is specified in the source 
  265.             file as: 
  266.                   
  267.                   .HR
  268.                   PCDRAFT 2.1 Documentation
  269.                   Copyright, 1987 by SET Laboratories, Inc.
  270.                  
  271.             The header will not appear on the first page of the 
  272.             formatted file. The header will appear on subsequent 
  273.             pages. 
  274.  
  275.        .IP x   The text in the source file following this command, 
  276.             up to another '.IP' or '.LP', will be treated as a 
  277.             list item. This list of commands is an example of a 
  278.             group of list items. If specified, 'x' is a label for 
  279.             the list item, and the rest of the list will be 
  280.             indented 5 spaces from the beginning of the label. If 
  281.             the label contains any blanks, it should be enclosed 
  282.             in double quotes ('"'). 
  283.  
  284.        .IS  The rest of the source file text, until an '.IE' is 
  285.             encountered, will be indented 5 spaces. Note that the 
  286.             .IS itself causes no actions to take place, it simply 
  287.             causes all subsequent lines (up to a '.IE') to be 
  288.             indented 5 spaces. 
  289.  
  290.  
  291.        
  292.        
  293.  
  294.        PCDRAFT 2.1 Documentation                                       6
  295.        Copyright, 1987 by SET Laboratories, Inc.
  296.  
  297.  
  298.        .LP  This ends a group of list items. 
  299.  
  300.        .MR x   This command sets the column that the left margin of 
  301.             the text will start in to column "x". By default, the 
  302.             text starts in column 1, 
  303.  
  304.        .NH  The source file text following this command will be 
  305.             treated as a section heading, up to some other 
  306.             P_C_D_R_A_F_T_ command, such as a '.PP'. This heading will 
  307.             automatically have a number associated with it. This 
  308.             number is incremented each time a '.NH' command is 
  309.             encountered. 
  310.  
  311.        .PG x   This command causes the current page number to be 
  312.             changed to 'x'. Normally, the page number begins at 
  313.             page 1. Note that this command does not cause any 
  314.             actions to occur, but rather causes the next page 
  315.             number in the formatted file to be 'x'. 
  316.  
  317.        .PL x   This command causes the length of the page used in 
  318.             the formatted file to be 'x'. The default page length 
  319.             is 55. Note that the '.PL' command does not cause any 
  320.             action to take place, but rather changes the page 
  321.             length for all future pages (including the current). 
  322.  
  323.        .PP  This command causes a new paragraph to be started in 
  324.             the formatted file. The first word in the paragraph 
  325.             will be indented 5 spaces. If no indentation is 
  326.             desired, the user should consider the '.SP' command. 
  327.  
  328.        .PV x   This command causes the indenting within the 
  329.             formatted file to be changed to 'x'. Default 
  330.             indenting is 5 spaces. Note that this command does 
  331.             not cause any particular action to take place. 
  332.             Rather, this command impacts the indentation done by 
  333.             the commands '.IP', '.IS', '.PP', and '.QS'. 
  334.  
  335.        .PW x   This command causes the page width used in the 
  336.             formatted file to be 'x'. The default output width is 
  337.             65 columns. Note that any indentation, left margin 
  338.             settings, etc. are included within these columns. 
  339.             This command does not cause any particular action to 
  340.             occur. 
  341.  
  342.        .QS  This command causes the source file text that follows 
  343.             it, until a '.QE' is encountered to be treated as a 
  344.             'quoted passage'. This quoted passage will be 
  345.             indented 5 spaces on the left and 10 spaces on the 
  346.             right. 
  347.  
  348.  
  349.        
  350.        
  351.  
  352.        PCDRAFT 2.1 Documentation                                       7
  353.        Copyright, 1987 by SET Laboratories, Inc.
  354.  
  355.  
  356.        .SH  This command causes the source file text that follows 
  357.             it up to the next P_C_D_R_A_F_T_ command such as a '.PP' to 
  358.             be treated as an unnumbered section heading. This 
  359.             section heading and the page it falls on will be 
  360.             entered in the document table of contents which will 
  361.             appear at the end of the report. 
  362.  
  363.        .SP x   This command causes 'x' spaces to be skipped in the 
  364.             output text. 
  365.  
  366.        .TL x   Center the next x lines of text in the source file. 
  367.             If x is omitted, it is assumed to be 1. Each line to 
  368.             be centered should be placed on a line by itself. No 
  369.             'formatting' is performed on this text other than 
  370.             centering. If two or more centered lines are to be 
  371.             separated by blank lines, the text may contain these 
  372.             blank lines, but be sure to include the blank lines 
  373.             in the count of lines to be centered. This command is 
  374.             similar to the .CE command, except this centered text 
  375.             is included in the table of contents that will appear 
  376.             after the last formatted page of text. 
  377.  
  378.        .UL  The text following this command, until a matching 
  379.             ".UE" is encountered, will be underlined. 
  380.  
  381.        As an example of how an unformatted P_C_D_R_A_F_T_ file with 
  382.        embedded commands might look, consider the following 
  383.        passage: 
  384.         
  385.         .CE 3
  386.         This is an Example of
  387.         How an Unformatted PCDRAFT File
  388.         Might Look
  389.         .PP
  390.         You might be interested in using
  391.         .UL
  392.         PCDRAFT
  393.         .UE
  394.         to write
  395.         documents, letters, manuals, examinations, etc.
  396.         .sp 1
  397.         If you would like to indicate a new paragraph with
  398.         just a blank line (ie, no indentation), just use the
  399.         command '.SP x'.
  400.         This will cause x lines to be skipped.
  401.         .PP
  402.         Indentation can be achieved using '.IS'.
  403.         Usually, it's used for 'list items'.
  404.         That is where you have a list of items, such as:
  405.         .IS
  406.  
  407.        
  408.        
  409.  
  410.        PCDRAFT 2.1 Documentation                                       8
  411.        Copyright, 1987 by SET Laboratories, Inc.
  412.  
  413.  
  414.         .IP (1)
  415.         Item 1
  416.         .IP (2)
  417.         Item 2 - note that whatever text follows it will
  418.         be indented so it is clear that it goes with THIS item ...
  419.         .LP
  420.         .IE
  421.         .UL
  422.         Make sure that you end the indentation group with a '.IE'.
  423.         There should be one '.IE' for every '.IS'.
  424.         .UE
  425.        
  426.        After formatting, the above text would look like this: 
  427.  
  428.  
  429.                          This is an Example of
  430.                     How an Unformatted PCDRAFT File
  431.                                Might Look
  432.  
  433.  
  434.             You might be interested in using P_C_D_R_A_F_T_ to write 
  435.        documents, letters, manuals, examinations, etc. 
  436.  
  437.        If you would like to indicate a new paragraph with just a 
  438.        blank line (ie, no indentation), just use the command '.SP 
  439.        x'. This will cause x lines to be skipped. 
  440.  
  441.             Indentation can be achieved using '.IS'. Usually, 
  442.        it's used for 'list items'. That is where you have a list 
  443.        of items, such as: 
  444.  
  445.             (1)  Item 1 
  446.  
  447.             (2)  Item 2 - note that whatever text follows it will 
  448.                  be indented so it is clear that it goes with 
  449.                  THIS item ... 
  450.  
  451.        M_a_k_e_ s_u_r_e_ t_h_a_t_ y_o_u_ e_n_d_ t_h_e_ i_n_d_e_n_t_a_t_i_o_n_ g_r_o_u_p_ w_i_t_h_ a_ '_._I_E_'_._ 
  452.        T_h_e_r_e_ s_h_o_u_l_d_ b_e_ o_n_e_ '_._I_E_'_ f_o_r_ e_v_e_r_y_ '_._I_S_'_._ 
  453.  
  454.             For a more complete example of what unformatted 
  455.        P_C_D_R_A_F_T_ files look like, you might try listing out the 
  456.        file PCDRAFT.RNO. 
  457.  
  458.  
  459.  
  460.  
  461.        
  462.        
  463.  
  464.        PCDRAFT 2.1 Documentation                                       9
  465.        Copyright, 1987 by SET Laboratories, Inc.
  466.  
  467.  
  468.  
  469.  
  470.  
  471.        HINTS FOR WORD PROCESSING USING PCDRAFT 
  472.  
  473.        o    When creating the unformatted text file, try to always 
  474.             start new sentences on a new line. By doing this an 
  475.             entire sentence may be removed without having to 
  476.             worry about retaining a part of the line. 
  477.  
  478.        o    When writing a multi-part manuscript (for example, a 
  479.             book), put each chapter in a different file. This 
  480.             makes editing faster, plus one chapter can be 
  481.             formatted at a time. Remember to add a ".PG x" 
  482.             command at the beginning of each chapter so the page 
  483.             numbering will be correct. 
  484.  
  485.        o    If one works on a number of different manuscripts 
  486.             concurrently, it would be helpful to create a 
  487.             'subdirectory' for each project. A subdirectory is a 
  488.             'unit of storage' within the user's main directory 
  489.             which can hold a number of files. The nice thing 
  490.             about having a subdirectory for each project, is that 
  491.             one does not have to worry about duplicate file names 
  492.             (for example, CHAP1 for the textbook you are working 
  493.             on and CHAP1 for the cookbook you are writing). 
  494.  
  495.  
  496.  
  497.        MAKING AND DISTRIBUTING COPIES 
  498.  
  499.             Users of P_C_D_R_A_F_T_ are encouraged to make copies of the 
  500.        code and distribute them to other users or post them on 
  501.        electronic bulletin boards. However, please note that 
  502.        PCDRAFT is N_O_T_ public domain. It is a copyrighted product! 
  503.        Therefore, when distributing copies, please adhere to the 
  504.        following rules: 
  505.  
  506.       You are encouraged to copy and share this program with other
  507.       users, on the conditions that the program is not distributed
  508.        in modified form, that no fee is charged for the program,
  509.             and that this notice is not bypassed or removed.
  510.  
  511.  
  512.        Also, please note the following warranty disclaimer: 
  513.  
  514.         This program is distributed on an "AS-IS" basis without
  515.       warranty. The entire risk as to the quality and performance
  516.         of the program is with the user. No warranties as to the
  517.                 quality/fitness of the program are made
  518.  
  519.  
  520.  
  521.        
  522.        
  523.  
  524.        PCDRAFT 2.1 Documentation                                      10
  525.        Copyright, 1987 by SET Laboratories, Inc.
  526.  
  527.  
  528.             At some point, you may find that you are using 
  529.        PCDRAFT for most of your writing. If you use PCDRAFT 
  530.        frequently, and find it a useful product, please register 
  531.        it for $20 with: 
  532.  
  533.                          SET Laboratories, Inc.
  534.                               PO Box 03963
  535.                            Portland, OR 97203
  536.  
  537.  
  538.        The $20 registration fee entitles you to the next version 
  539.        of PCDRAFT as soon as it is released. In addition, 
  540.        registered users may send questions about using PCDRAFT to 
  541.        the above address. Please include your registration number 
  542.        (sent to you as soon as you register along with the 
  543.        current version of PCDRAFT) and a stamped, self addressed 
  544.        envelope. 
  545.  
  546.  
  547.                      A SYNOPSIS OF PCDRAFT COMMANDS
  548.  
  549.  
  550.        A PCDRAFT command has a '.' in column 1 and two 
  551.        characters: 
  552.              
  553.              .BP      break page
  554.              .CE      center
  555.              .CS      change line spacing+
  556.              .DP      note upcoming display page+
  557.              .DS/.DE  display item
  558.              .EN      end formatting
  559.              .FR      define 2 line page footing+
  560.              .FS/.FE  define footnote+
  561.              .HR      define 2 line page heading+
  562.              .IP      list item
  563.              .IS/.IE  indent PPval spaces+
  564.              .LP      end list item
  565.              .MR      specify left margin+
  566.              .NH      numbered section heading++
  567.              .PG      change page number+
  568.              .PL      change page length+
  569.              .PP      paragraph
  570.              .PV      change PPval+
  571.              .PW      change page width+
  572.              .QS/.QE  quote section
  573.              .SH      section heading++
  574.              .SP      space with blank line
  575.              .TL      title ++
  576.              .UL/.UE  underline on/off
  577.             
  578.  
  579.  
  580.        ____________________
  581.        (+) deferred command (++) entered in the table of contents
  582.  
  583.        
  584.        
  585.  
  586.  
  587.  
  588.  
  589.  
  590.                                Table of Contents
  591.  
  592.  
  593.  
  594.        INTRODUCTION                                             1
  595.        HARDWARE AND SOFTWARE REQUIREMENTS                       2
  596.        TECHNICAL MATTERS                                        3
  597.        PCDRAFT COMMANDS                                         3
  598.        HINTS FOR WORD PROCESSING USING PCDRAFT                  9
  599.        MAKING AND DISTRIBUTING COPIES                           9
  600.        A SYNOPSIS OF PCDRAFT COMMANDS                          10
  601.